package com.yz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yz.entity.Readroom;
import com.yz.mapper.ReadroomMapper;
import com.yz.service.ReadroomService;

/**
 * 阅览室实现类
 * @author 于万伟
 *
 */
@Service
public class ReadroomServiceImpl implements ReadroomService{
	@Autowired
	ReadroomMapper readroomMapper;

	@Override
	public List<Readroom> getRead(Readroom readroomDto) {
		return readroomMapper.getRead(readroomDto);
	}

	@Override
	public boolean addRead(Readroom readroom) {
		return readroomMapper.addRead(readroom);
	}

	@Override
	public boolean updateRead(Readroom readroom) {
		return readroomMapper.updateRead(readroom);
	}

	@Override
	public boolean delRead(int rid) {
		return readroomMapper.delRead(rid);
	}
}
